#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
using namespace std;
char arr[2505][30];
int i, j;
int main()
{
	int a = 0, b = 0;
	do {
		for (j = 0; j < 25; j++) {
			scanf("%c", &arr[i][j]);
			if (arr[i][j] == 'E')goto end0;
		}
		scanf("\n");
		++i;
	} while (1);
end0:;
	for (int n = 0; n <= i; n++) {
		for (int m = 0; m < 25; m++) {
			if (arr[n][m] == 'E') {
				printf("%d:%d\n\n", a, b);
				a = b = 0;
				goto end1;
			}
			if (arr[n][m] == 'W')a++;
			else if (arr[n][m] == 'L')b++;
			if ((a >= 11 || b >= 11) && abs(a - b) >= 2) {
				printf("%d:%d\n", a, b);
				a = 0; b = 0;
			}
		}
	}
end1:;
	for (int n = 0; n <= i; n++) {
		for (int m = 0; m < 25; m++) {
			if (arr[n][m] == 'E') {
				printf("%d:%d", a, b);
				a = b = 0;
				goto end2;
			}
			if (arr[n][m] == 'W')a++;
			else if (arr[n][m] == 'L')b++;
			if ((a >= 21 || b >= 21) && abs(a - b) >= 2) {
				printf("%d:%d\n", a, b);
				a = 0; b = 0;
			}
		}
	}
end2:;
	return 0;
}